/*
 * @Author: 飞越疯人院 353362604@qq.com
 * @Date: 2022-09-16 10:04:55
 * @LastEditors: NaN 353362604@qq.com
 * @LastEditTime: 2023-01-16 09:08:10
 * @FilePath: \adminstration\src\Common\Configure\CommonFigure.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

/**
 * !@  通用配置参数
 * @commonUrl  通用图床
 * @UploadFileType  文件判断数组
 * @UploadFileMapping   文件判断数组映射
 */

export const commonUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/'
export const DrawingBed = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Common/'
export const commonImageUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Common/BackImage/'
export const boundaryUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Common/boundary/'
export const CommonFiles = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Common/Files/'
export const DivImageUrl = 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Style/Image/'

export const ProvinceList = {
    110000: {
        position: [116.340328, 40.194593, 0],
        name: '北京市',
        center: { lat: 38.832752, lng: 116.450673, alt: 384630.9, heading: 1.4, pitch: -67.4 },
    },
    120000: {
        position: [117.320295, 39.15801, 0],
        name: '天津市',
        center: { lat: 37.780218, lng: 117.362404, alt: 350882.3, heading: 1.4, pitch: -62.9 },
    },
    130000: {
        position: [115.302415, 38.231756, 0],
        name: '河北省',
        center: { lat: 33.288887, lng: 116.069696, alt: 1342665.3, heading: 1.4, pitch: -62.9 },
    },
    140000: {
        position: [112.153966, 37.288469, 0],
        name: '山西省',
        center: { lat: 31.217678, lng: 111.89083, alt: 1418616.8, heading: 1.4, pitch: -62.9 },
    },
    150000: {
        position: [114.10521, 43.879118, 0],
        name: '内蒙古自治区',
        center: { lat: 26.740787, lng: 110.591753, alt: 3998724.4, heading: 1.4, pitch: -62.9 },
    },
    210000: {
        position: [122.641932, 40.850393, 0],
        name: '辽宁省',
        center: { lat: 36.337849, lng: 122.186327, alt: 1107420.9, heading: 1.4, pitch: -62.9 },
    },
    220000: {
        position: [126.91682, 42.920443, 0],
        name: '吉林省',
        center: { lat: 37.45977, lng: 126.228775, alt: 1509963.4, heading: 1.4, pitch: -62.9 },
    },
    230000: {
        position: [128.074636, 46.740028, 0],
        name: '黑龙江省',
        center: { lat: 40.229143, lng: 128.180776, alt: 1864924.6, heading: 1.4, pitch: -62.9 },
    },
    310000: {
        position: [121.68535, 30.923371, 0],
        name: '上海市',
        center: { lat: 30.0852, lng: 121.576727, alt: 241499.4, heading: 1.4, pitch: -62.9 },
    },
    320000: {
        position: [120.008348, 32.519848, 0],
        name: '江苏省',
        center: { lat: 28.136937, lng: 118.99776, alt: 1060303.1, heading: 1.4, pitch: -62.9 },
    },
    330000: {
        position: [120.210429, 28.945359, 0],
        name: '浙江省',
        center: { lat: 24.989673, lng: 120.546843, alt: 873669.1, heading: 1.4, pitch: -62.9 },
    },
    340000: {
        position: [117.295594, 31.269565, 0],
        name: '安徽省',
        center: { lat: 26.842753, lng: 117.31615, alt: 1090046.1, heading: 1.4, pitch: -62.9 },
    },
    350000: {
        position: [118.188101, 25.695096, 0],
        name: '福建省',
        center: { lat: 21.321443, lng: 118.140963, alt: 989411.3, heading: 1.4, pitch: -62.9 },
    },
    360000: {
        position: [115.556729, 27.374443, 0],
        name: '江西省',
        center: { lat: 21.985011, lng: 115.744966, alt: 1153388.6, heading: 1.4, pitch: -62.9 },
    },
    370000: {
        position: [117.819548, 36.222539, 0],
        name: '山东省',
        center: { lat: 31.40358, lng: 118.576299, alt: 1100081.9, heading: 1.4, pitch: -62.9 },
    },
    410000: {
        position: [113.778758, 33.910651, 0],
        name: '河南省',
        center: { lat: 29.056811, lng: 113.573075, alt: 1072556.2, heading: 1.4, pitch: -62.9 },
    },
    420000: {
        position: [112.349201, 30.568476, 0],
        name: '湖北省',
        center: { lat: 26.114018, lng: 112.166622, alt: 1033487.9, heading: 1.4, pitch: -62.9 },
    },
    430000: {
        position: [111.729713, 27.435004, 0],
        name: '湖南省',
        center: { lat: 23.299886, lng: 111.610586, alt: 909164.1, heading: 1.4, pitch: -62.9 },
    },
    440000: {
        position: [113.638818, 23.22564, 0],
        name: '广东省',
        center: { lat: 16.983622, lng: 113.264473, alt: 1202135.2, heading: 1.4, pitch: -62.9 },
    },
    450000: {
        position: [108.474488, 23.235055, 0],
        name: '广西壮族自治区',
        center: { lat: 19.001916, lng: 108.291958, alt: 1020515.4, heading: 1.4, pitch: -62.9 },
    },
    460000: {
        position: [109.916447, 19.132084, 0],
        name: '海南省',
        center: { lat: -0.547095, lng: 111.408366, alt: 2870532.6, heading: 1.4, pitch: -62.9 },
    },
    500000: {
        position: [107.783894, 30.017217, 0],
        name: '重庆市',
        center: { lat: 26.335995, lng: 107.642395, alt: 800397.7, heading: 1.4, pitch: -62.9 },
    },
    510000: {
        position: [102.496419, 30.68802, 0],
        name: '四川省',
        center: { lat: 23.59769, lng: 102.706957, alt: 1496559, heading: 1.4, pitch: -62.9 },
    },
    520000: {
        position: [106.851639, 26.584876, 0],
        name: '贵州省',
        center: { lat: 22.363462, lng: 106.455223, alt: 982937.1, heading: 1.4, pitch: -62.9 },
    },
    530000: {
        position: [100.970939, 24.405846, 0],
        name: '云南省',
        center: { lat: 18.720507, lng: 101.598302, alt: 1410758, heading: 1.4, pitch: -62.9 },
    },
    540000: {
        position: [88.183945, 30.254035, 0],
        name: '西藏自治区',
        center: { lat: 18.391711, lng: 89.033567, alt: 2800547.5, heading: 1.4, pitch: -62.9 },
    },
    610000: {
        position: [108.705813, 34.35927, 0],
        name: '陕西省',
        center: { lat: 29.705292, lng: 107.889243, alt: 1318988.5, heading: 1.4, pitch: -62.9 },
    },
    620000: {
        position: [96.289294, 40.033911, 0],
        name: '甘肃省',
        center: { lat: 26.919917, lng: 100.701318, alt: 2344759.6, heading: 1.4, pitch: -62.9 },
    },
    630000: {
        position: [95.686318, 35.631635, 0],
        name: '青海省',
        center: { lat: 26.680934, lng: 95.971765, alt: 1935802.8, heading: 1.4, pitch: -62.9 },
    },
    640000: {
        position: [105.894653, 37.04472, 0],
        name: '宁夏回族自治区',
        center: { lat: 33.740562, lng: 106.01737, alt: 785807.5, heading: 1.4, pitch: -62.9 },
    },
    650000: {
        position: [84.022197, 40.790545, 0],
        name: '新疆维吾尔自治区',
        center: { lat: 31.537091, lng: 84.921419, alt: 3624566.3, heading: 0.8, pitch: -71.8 },
    },
    710000: { position: [120.978059, 23.403875, 0], name: '台湾省', center: {} },
}

export const Map230000 = {
    230100: {
        position: [127.725297, 45.443895, 0],
        name: '哈尔滨市',
    },
    230200: {
        position: [124.267545, 47.802083, 0],
        name: '齐齐哈尔市',
    },
    230300: {
        position: [132.513757, 45.4617, 0],
        name: '鸡西市',
    },
    230400: {
        position: [130.375505, 47.722048, 0],
        name: '鹤岗市',
    },
    230500: {
        position: [132.167835, 46.560188, 0],
        name: '双鸭山市',
    },
    230600: {
        position: [124.362255, 46.337452, 0],
        name: '大庆市',
    },
    230700: {
        position: [129.090814, 48.008663, 0],
        name: '伊春市',
    },
    230800: {
        position: [132.406709, 47.218961, 0],
        name: '佳木斯市',
    },
    230900: {
        position: [130.526248, 45.790481, 0],
        name: '七台河市',
    },
    231000: {
        position: [129.737906, 44.5308, 0],
        name: '牡丹江市',
    },
    231100: {
        position: [127.025614, 49.423753, 0],
        name: '黑河市',
    },
    231200: {
        position: [126.353849, 46.849278, 0],
        name: '绥化市',
    },
    232700: {
        position: [123.974298, 52.306872, 0],
        name: '大兴安岭地区',
    },
}

// 一般文件类型
const documentsType = ['text', 'txt']
// 图像类型
const imagesType = ['jpg', 'jpeg', 'png', 'ico', 'svg', 'gif']
// 视频类型
const videoType = ['mp3', 'mp4', 'flv']
// pdf
const pdfType = ['pdf', 'doc', 'docx', 'xls', 'xlsx']
// 压缩文件
const compressedType = ['zip', 'rar']

export const UploadFileType = [documentsType, imagesType, videoType, pdfType, compressedType]
export const UploadFileMapping = ['一般文件', '图像文件', '音视频文件', '富文本文件', '压缩文件']

/*
 * 试验名称映射
 */
export const TestNameMapping = {
    压力机: { uuid: 0, title: '压力机' },
    标养室: { uuid: 1, title: '标养室' },
    马歇尔: { uuid: 2, title: '马歇尔' },
    针入度: { uuid: 3, title: '针入度' },
    软化点: { uuid: 4, title: '软化点' },
    延度仪: { uuid: 16, title: '延度仪' },
    回弹仪: { uuid: 20, title: '回弹仪' },
    万能机水泥: { uuid: 5, title: '万能机\n水泥' },
    万能机: { uuid: 6, title: '万能机' },
    钢筋保护层: { uuid: 15, title: '钢筋\n保护层' },
    抗折抗压一体机: { uuid: 21, title: '抗折抗压\n一体机' },
    cbr: { uuid: 18, title: '路强仪\ncbr' },
}
/*
 * 试验室类型映射
 */
export const TestTypeMapping = {
    0: { label: 'LabStressMachineMapping', title: '压力机试验数据' },
    1: { label: 'LabHumitureMapping', title: '标养室试验数据' },
    2: { label: 'LabMarshallStabilityMapping', title: '马歇尔试验数据' },
    3: { label: 'LabPenetrationMapping', title: '针入度试验数据' },
    4: { label: 'LabSofteningPointMapping', title: '软化点试验数据' },
    // 5: { label: 'LabUniversalCementMapping', title: '万能机水泥试验数据' },
    6: { label: 'LabUniversalRebarMapping', title: '万能机钢筋试验数据' },
    15: { label: 'LabCoverProtectorMapping', title: '钢筋保护层试验数据' },
    16: { label: 'LabDuctilityMapping', title: '延度仪试验数据' },
    // 17: { label: 'LabPmsTesterMapping', title: '路强仪抗压试验数据' },
    18: { label: 'LabPmsTesterCbrMapping', title: '路强仪cbr试验数据' },
    // 19: { label: 'LabPmsTesterSpringbackMapping', title: '路强仪回弹试验数据' },
    20: { label: 'LabReboundHammerMapping', title: '回弹仪试验数据' },
    21: { label: 'LabStressMachineMappingTwo', title: '抗折抗压一体机试验数据' },
}

// 试验室映射2
export const TestTypeMappingTwo = {
    压力机试验数据: 'LabStressMachineMapping',
    标养室试验数据: 'LabHumitureMapping',
    马歇尔试验数据: 'LabMarshallStabilityMapping',
    针入度试验数据: 'LabPenetrationMapping',
    软化点试验数据: 'LabSofteningPointMapping',
    万能机钢筋试验数据: 'LabUniversalRebarMapping',
    钢筋保护层: 'LabCoverProtectorMapping',
    延度仪试验数据: 'LabDuctilityMapping',
    路强仪cbr试验数据: 'LabPmsTesterCbrMapping',
    回弹仪试验数据: 'LabReboundHammerMapping',
    抗折抗压一体机试验数据: 'LabStressMachineMappingTwo',
}

/**
 * !@  网页端主题
 */

// 网页端主题信息
export const WebTheme = {
    '002': { value: '002', label: '薄暮', color: '245,34,45', dark: '#cf1322' },
    '003': { value: '003', label: '火山', color: '250,84,28', dark: '#d4380d' },
    '004': { value: '004', label: '日暮', color: '250,140,22', dark: '#d46b08' },
    '005': { value: '005', label: '金盏', color: '250,173,20', dark: '#d48806' },
    '006': { value: '006', label: '日出', color: '250,219,20', dark: '#d4b106' },
    '007': { value: '007', label: '青柠', color: '160,217,17', dark: '#7cb305' },
    '008': { value: '008', label: '极光', color: '82,196,26', dark: '#389e0d' },
    '009': { value: '009', label: '明青', color: '19,194,194', dark: '#08979c' },
    '001': { value: '001', label: '拂晓', color: '24,144,255', dark: '#096dd9' },
    '010': { value: '010', label: '极客', color: '47,84,235', dark: '#1d39c4' },
    '011': { value: '011', label: '酱紫', color: '114,46,209', dark: '#531dab' },
    '012': { value: '012', label: '洋红', color: '235,47,150', dark: '#c41d7f' },
}

/**
 * !@  小程序配置参数
 */

// 小程序TabsNav
export const BottomNav = [
    { name: '首页', icon: 'Iconhome2' },
    { name: '打卡', icon: 'IconDaqia' },
    { name: '我的', icon: 'Iconhome22' },
]

// 小程序主题
export const WeChatTheme = {
    薄暮: '245,34,45',
    火山: '250,84,28',
    日暮: '250,140,22',
    金盏: '250,173,20',
    日出: '250,219,20',
    青柠: '160,217,17',
    极光: '82,196,26',
    明青: '19,194,194',
    拂晓: '35,110,231',
    极客: '47,84,235',
    酱紫: '114,46,209',
    洋红: '235,47,150',
    大红: '217,40,38',
    大紫: '143,10,219',
    绀青: '50, 148, 198',
    沉稳: '55, 68, 89',
}

// 小程序头部logo
export const WechatLogo = {
    默认: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/IndexTopBack.png',
    一: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/安全管理.png',
    二: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/质量.png',
    三: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/试验室.png',
}

// 小程序菜单配置
export const MenuMapping = {
    '7e17ec4f-c94e-4902-804c-e238d559f54c': {
        name: '安全巡检',
        icon: 'Icon1',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/安全管理.png',
    },
    '6f9c7bc4-6962-44e8-8faf-bd53ec06ed96': {
        name: '质量巡检',
        icon: 'IconYiliaozhiliangfenxi',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/质量.png',
    },
    'd2c50275-1339-483e-84ca-4e07e788e46a': {
        name: '试验室',
        icon: 'shiyan',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/试验室.png',
    },
    '6b706ccc-fbaf-418f-9cbe-3b6333abad19': {
        name: '进度管理',
        icon: 'IconChart78',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/进度管理.png',
    },
    'a997cddc-37a7-4413-9d35-9da117d92dbd': {
        name: '机械管理',
        icon: 'shuinijiaobanche01',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/机械管理.png',
    },
    '9b181713-aa47-41a6-b7fd-ac304fde0fd2': {
        name: '人员统计',
        icon: 'Icon2',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/人员疫情.png',
    },
    'ea687214-14f8-4d5f-b615-957f14713f32': {
        name: '视频管理',
        icon: 'IconJiankong',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/视频监控.png',
    },
    '6f601000-09c7-4334-8e62-06b68380a46b': {
        name: '直播管理',
        icon: 'fill',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/无人机直播.png',
    },
    '7561a2b8-f8cf-408e-abf3-ebb87d488051': {
        name: '环境监测',
        icon: 'IconHuanjingjiance',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/环境监测.png',
    },
    '21549f15-8a68-4b24-8378-a1864f56cf84': {
        name: '智慧梁场',
        icon: 'factory',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/智慧梁场.png',
    },
    '6586f08e-3f4d-4279-a4ec-735a6f5b35a0': {
        name: '监理工序',
        icon: 'gongxuxinxibiao',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/监理工序.png',
    },
    '4119884a-c84b-42bf-8375-f92d78a4d926': {
        name: '隧道管理',
        icon: 'gongxuxinxibiao',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/监理工序.png',
    },
    '885dcbe1-0b31-4bab-b548-3fa4a68e030a': {
        name: '财务审批',
        icon: 'gongxuxinxibiao',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/财务审批.png',
    },
    'ae8d937b-01c1-4d6d-ade9-e4547e06c435': {
        name: '事务督办',
        icon: 'gongxuxinxibiao',
        back: 'https://image.ljkjkf.com/intellisiteSystem_TieKe/Applets/事务督办.png',
    },
}

export const MonthToZh = {
    '01': '一月',
    '02': '二月',
    '03': '三月',
    '04': '四月',
    '05': '五月',
    '06': '六月',
    '07': '七月',
    '08': '八月',
    '09': '九月',
    10: '十月',
    11: '十一月',
    12: '十二月',
}

export const IndexToZH = {
    0: '一',
    1: '二',
    2: '三',
    3: '四',
    4: '五',
    5: '六',
    6: '七',
    7: '八',
    8: '九',
    9: '十',
    10: '十一',
    11: '十二',
    12: '十三',
    13: '十四',
    14: '十五',
    15: '十六',
    16: '十七',
    17: '十八',
    18: '十九',
    19: '二十',
    20: '二十一',
    21: '二十二',
    22: '二十三',
    23: '二十四',
    24: '二十五',
    25: '二十六',
    26: '二十七',
    27: '二十八',
    28: '二十九',
    29: '三十',
    30: '三十一',
    31: '三十二',
    32: '三十三',
    33: '三十四',
    34: '三十五',
    35: '三十六',
    36: '三十七',
    37: '三十八',
    38: '三十九',
    39: '四十',
    40: '四十一',
    41: '四十二',
    42: '四十三',
    43: '四十四',
    44: '四十五',
    45: '四十六',
    46: '四十七',
    47: '四十八',
    48: '四十九',
    49: '五十',
    50: '五十一',
    51: '五十二',
    52: '五十三',
    53: '五十四',
    54: '五十五',
    55: '五十六',
    56: '五十七',
    57: '五十八',
    58: '五十九',
    59: '六十',
    60: '六十一',
    61: '六十二',
    62: '六十三',
    63: '六十四',
    64: '六十五',
    65: '六十六',
    66: '六十七',
    67: '六十八',
    68: '六十九',
    69: '七十',
    70: '七十一',
    71: '七十二',
    72: '七十三',
    73: '七十四',
    74: '七十五',
    75: '七十六',
    76: '七十七',
    77: '七十八',
    78: '七十九',
    79: '八十',
    80: '八十一',
    81: '八十二',
    82: '八十三',
    83: '八十四',
    84: '八十五',
    85: '八十六',
    86: '八十七',
    87: '八十八',
    88: '八十九',
    89: '九十',
    90: '九十一',
    91: '九十二',
    92: '九十三',
    93: '九十四',
    94: '九十五',
    95: '九十六',
    96: '九十七',
    97: '九十八',
    98: '九十九',
    99: '一百',
}
